@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="roomId" value="${item.roomId}">
            <input type="hidden" id="column_ids" value="${column_ids}">
            @for(item in l_column){
            	<input type="hidden" id="columnOld${item.columnId}" value="${item.beEdit}">
	        @}
				        
			<div class="row">
				<div class="col-sm-6">
                    <#avatar id="avatar" name="课程卡" underline="true" avatarImg="${item.imageUrl}"/>      
                </div>
			</div>
            <div class="row">
                <div class="col-sm-6 b-r">
        			<#input id="teacherName" name="教师名称" value="${item.teacherName}" underline="true"/>
                    <#input id="subject" name="课程名称" value="${item.subject}" underline="true"/>
                    
                    <div class="form-group">
	                    <input type="hidden" id="courseware_selected" value="">
	                    <input type="hidden" id="courseware_unselected" value="">
					    <label class="col-sm-3 control-label">录播件展示</label>
					    <div class="col-sm-9">
						    @for(item in l_roomCourseware){
							    @if(item.beDeleted=="0"){
							        <input  name="courseware"   type="checkbox" value="${item.coursewareId}" underline="true" checked /> ${itemLP.index}
	                            @}else{
	                            	<input  name="courseware"   type="checkbox" value="${item.coursewareId}" underline="true"/> ${itemLP.index}
	                            @}
					            
					        @}
					        @if(l_roomCourseware.~size==0){
					        	<label class="col-sm-12">未生成录播件</label>
					        @}
					    </div>
					</div>
					
					
						 @for(item in l_column){
						 	@if( itemLP.index == 1 ){
						    	<select id="column${item.columnId}" name="${item.columnName}" style="display:none;" >
									<option value="0">是</option>
									<option value="1" selected>否</option>
								</select>
							 @}
						 	 @if(itemLP.index == 2){
						    	<#select id="column${item.columnId}" name="${item.columnName}" underline="false">
									<option value="0">是</option>
									<option value="1" selected>否</option>
								</#select>
								
								 @if(item.columnDesc=="ms"){
									<input type="hidden" id="starTeacherColumnId" value="column${item.columnId}" >
									<input type="hidden" id="starTeacherId_old" value="${starTeacherId!}" >
									<#select id="starTeacherId" name="名师" underline="true">
										<option value=""></option>
										 @for(teacher in l_teacher){
											<option value="${teacher.teacherId}">${teacher.teacherName}</option>
										@}
									</#select>
								 @}
							 @}
				        @}
					
                </div>

                <div class="col-sm-6">
                	<#input id="schoolName" name="学校名称" value="${item.schoolName}" underline="true"/>
                	<#input id="description" name="课程简介" value="${item.description}" underline="true"/>
						 @for(item in l_column){
						 	 @if(itemLP.index>2){
						    	<#select id="column${item.columnId}" name="${item.columnName}" underline="true">
									<option value="0">是</option>
									<option value="1" selected>否</option>
								</#select>
							 @}
				        @}
                           
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ClmRoomInfoDlg.utilEditSubmit()"/>
                    <#button btnCss="danger" name="关闭" id="cancel" icon="fa-eraser" clickFun="ClmRoomInfoDlg.utilClose()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/clm/clmRoom/clmRoom_info.js"></script>
@}
